﻿using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace table_json
{
  public   class JsonTypeData
    {
        public  enum Type {str,num,json,boolean };


        private string name;

        [JsonConverter(typeof(StringEnumConverter))]
        public Type type;

        public string desc;

        public JsonTypeData()
        {
        }


        public JsonTypeData(string name ,Type type, string desc)
        {
            this.name = name;
            this.type = type;
            this.desc = desc;
        }

        public Type getType()
        {
            return type;
        }

        public string getDesc()
        {
            return desc;
        }

        public string getName()
        {
            return name;
        }



    }
}
